package cn.com.egova.service;

import cn.com.egova.dao.SaleVisitDao;
import cn.com.egova.domain.PageBean;
import cn.com.egova.domain.SaleVisit;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by yuanchao on 2020/5/27.
 */
@Transactional
public class SaleVisitServiceImpl implements SaleVisitService {
    private SaleVisitDao saleVisitDao;

    public void setSaleVisitDao(SaleVisitDao saleVisitDao) {
        this.saleVisitDao = saleVisitDao;
    }


    @Override
    public PageBean<SaleVisit> findByPage(Integer pageCode, Integer pageSize, DetachedCriteria criteria) {
        return saleVisitDao.findByPage(pageCode, pageSize, criteria);
    }

    @Override
    public void save(SaleVisit saleVisit) {
        saleVisitDao.save(saleVisit);
    }
}
